package top.appx.tag;

import top.appx.util.DateTimeUtil;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;
import java.io.IOException;
import java.sql.Timestamp;

/**
 * Created by zwyhome on 2015/6/22.
 */
public class DateTimeJuTag extends SimpleTagSupport {
    private Timestamp time;
    @Override
    public void doTag() throws JspException, IOException {
        this.getJspContext().getOut().print(DateTimeUtil.juli(time));
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }



}
